home *** CD-ROM | disk | FTP | other *** search
- Path: news.cencom.net!ns!tanp
- From: tanp@ns (Bill Wendling)
- Newsgroups: comp.lang.c
- Subject: Re: ASCII value of a character
- Date: 5 Feb 1996 07:11:24 GMT
- Organization: Cen-Com Internet
- Message-ID: <4f4ais$4c2@news.cencom.net>
- References: <Pine.SUN.3.91.960202222737.26868B-100000@parsifal.nando.net> <4f0ov1$eca@nw002.infi.net>
- NNTP-Posting-Host: ns.cencom.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- Greg DiGiorgio inexplicably wrote:
- } Pretzel,
-
- } Here's some twisted logic for you...
-
- } #include <stdio.h>
- } main () {
- } char c;
- } printf("Enter a character: ");
- } scanf("%1c",c);
-
- /*
- Uh....
- scanf("%1c", &c);
- is what it should be.
- */
-
- } switch (c) {
- } case 9: printf("You entered a TAB\n");
- } break;
- } default:break;
- } }
- } }
-
- } Greg DiGiorgio
-
-
- --
- Bill Wendling | "Pinky, are you thinking what I'm thinking?"
- tanp@ns.cencom.net | "I think so, Brain, but burlap chafes me so."
- "Boom Shanka" | Finger me for my Geek Code...NOW!
-